home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / group.h < prev    next >
C/C++ Source or Header  |  1992-08-31  |  854b  |  45 lines

  1. #include "fsa.h"
  2. #include "transform.h"
  3. #include "color.h"
  4.  
  5. #define KEYWORDSIZE     32
  6. #define NAMESIZE     128
  7. #define LABELSIZE    256
  8. #define    WORDLENGTH    32
  9. #define MYMAXGENS    128        /* MAXGENS appears in fsa.h */
  10.  
  11. typedef struct {
  12.     int         attributes;    /* type? fixed points, etc? */
  13.     char         word[WORDLENGTH]; /* the 'string' in the generators? */
  14.     Transform     tform;
  15.     ColorA        color;    
  16.     } group_el;
  17.         
  18. typedef struct {
  19.     char         *name;
  20.     char         *comment;
  21.     int         attributes;
  22.     int         dimn;
  23.     struct fsa    *fsa;
  24.     int        numgens;
  25.     int        numels;
  26.     group_el    *gens;
  27.     group_el    *el_list;
  28.     } group;
  29.         
  30. #define HYPERBOLIC    1
  31. #define EUCLIDEAN    2
  32. #define SPHERICAL    4
  33. #define FINITE        8
  34. #define TRANSPOSED    16
  35.  
  36. #define NUM_ATTR    5
  37.  
  38. extern char attr_list[][24];
  39. extern int attr_val[];
  40.  
  41. extern group *groupalloc();
  42. extern group *read_group();
  43. extern group *fread_group();
  44. extern int fwrite_group();
  45.